<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
  img {
    margin-left: 80px;
    width: 60px;
    animation: car 5s ease infinite;
    transform: rotate(90deg)
  }
  @keyframes car {
    0% {
      transform: translateX(0) rotate(90deg) ;
    }
    49% {
      transform: translateX(800px) rotate(90deg);
    }
    50% {
      transform: translateX(800px) rotateY(180deg) rotate(90deg);
    }
    99% {
      transform: translateX(0) rotateY(180deg) rotate(90deg);
    }
    100% {
      
      transform: translateX(0)  rotate(90deg);

    }
  }

  </style>
</head>
<body>
  <div>
    <img src="./images/car.jpg" alt="">
  </div>
</body>
</html>
